package edu.gatech.cs2340.teamrocket.view.main;

import java.awt.*;

import javax.swing.*;

import edu.gatech.cs2340.teamrocket.model.environment.Weather;

/**
 * This is the center panel of the main game panel
 * @author Wai Chip Ngai
 *
 */
@SuppressWarnings("serial")
public class CenterPanel extends JPanel {
	JLabel mainPic = new JLabel("",JLabel.CENTER); 
	public CenterPanel(){
		setPreferredSize(new Dimension(550, 568));
		setLayout(new GridLayout(1,1));
		add(mainPic);
	}
	
	public void updatePicture(Weather w){
		mainPic.setIcon(new ImageIcon("img/mainImg/backdrop_" + w + ".png"));
	}

}
